 //***************************************************
 // Stars.java       Author:20172323wyh
 //
 // Demonstrates the use of nested for loops.
 //***************************************************
 public class Stars
 {
    //------------------------------------------------
    // Prints a triangle shapr using asterisk (star)
    // characters.
    //------------------------------------------------
    public static void main(String[] args)
    {
       final int MAX_ROWS = 10;
    
       for (int row = 1; row <= MAX_ROWS; row++)
       {
          for (int star = 1; star <= row; star++)
             System.out.print("*");

          System.out.println();
       }
    }
 }
